package ${appProperty.basePackage}.model.vo;

import ${appProperty.basePackage}.model.dto.${tableMeta.upperName}DTO;
import lombok.Getter;
import lombok.Setter;

/**
* @author ${appProperty.author}
* @version V1.0
* <p>Description: ${tableMeta.upperName} VO</p>
* @date ${appProperty.dateTime}
*/
@Getter
@Setter
public class ${tableMeta.upperName}VO {

<#if columnList?exists>
    <#list columnList as column>
    /**
    * ${column.comment}
    */
    private ${column.javaType} ${column.camelName};

    </#list>
</#if>

    public void convertToVO(${tableMeta.upperName}DTO ${tableMeta.camelName}DTO) {
<#if columnList?exists>
    <#list columnList as column>
        this.${column.camelName} = ${tableMeta.camelName}DTO.get${column.upperName}();
    </#list>
</#if>
    }

    public ${tableMeta.upperName}DTO convertToDTO() {
        ${tableMeta.upperName}DTO ${tableMeta.camelName}DTO = new ${tableMeta.upperName}DTO();
<#if columnList?exists>
    <#list columnList as column>
        ${tableMeta.camelName}DTO.set${column.upperName}(${column.camelName});
    </#list>
</#if>
        return ${tableMeta.camelName}DTO;
    }
}
